﻿IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Mail_GetAttachmentInfo_V2]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Mail_GetAttachmentInfo_V2];
GO

CREATE PROCEDURE [dbo].[sproc_Mail_GetAttachmentInfo_V2]
(
    @FileID int
)
AS
BEGIN
SET NOCOUNT ON

SELECT * FROM dbo.UDS_MailAttachment WHERE FileID = @FileID;

END
GO